$OpenBSD: patch-source_tools_pdfinfo_c,v 1.3 2017/05/05 14:02:51 sthen Exp $

add pledge(2) to "mutool info"

Index: source/tools/pdfinfo.c
--- source/tools/pdfinfo.c.orig
+++ source/tools/pdfinfo.c
@@ -1025,6 +1025,12 @@ int pdfinfo_main(int argc, char **argv)
 	if (fz_optind == argc)
 		infousage();
 
+	if (pledge("stdio rpath", NULL) == -1)
+	{
+		fprintf(stderr, "pledge: %s\n", strerror(errno));
+		exit(1);
+	}
+
 	ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED);
 	if (!ctx)
 	{
